package com.longteng.diamond.dao;


import com.longteng.diamond.domain.InterfaceMockData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * Created by Administrator
 * DATE : 2018/8/5
 * TIME : 17:38
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Mapper
public interface InterfaceMockDataMapper {

    /**
     * 获取mock数据接口
     * @param interfaceMockData
     * @return List<InterfaceMockData>
     * */
    public List<InterfaceMockData> getInterfaceMockData(InterfaceMockData interfaceMockData);

    /**
     *  查询所有行
     * @param interfaceMockData
     * @return long
     */
    public Long queryAllRow(InterfaceMockData interfaceMockData);

    /**
     * 根据id获取mock数据接口
     * @param interfaceId
     * @return InterfaceMockData
     */
    public InterfaceMockData findInterfaceMockDataById(Integer interfaceId);
    /**
     * 新增mock数据接口
     * @param interfaceMockData
     * @return
     */
    public void addInterfaceMockData(InterfaceMockData interfaceMockData);

    /**
     * 修改mock数据接口
     * @param interfaceMockData
     * @return
     */
    public void updateInterfaceMockData(InterfaceMockData interfaceMockData);

    /**
     * 删除mock数据接口
     * @param interfaceId
     * @return
     */
    public void deleteInterfaceMockDataById(Integer interfaceId);

    /**
     * 根据mockId获取数据
     * @param interfaceMockDataId
     * @return
     */
    public List<InterfaceMockData> getMockDataByInterfaceMockId( Integer interfaceMockDataId);
}
